<template>
  <div id="app">
    <keep-alive>
      <router-view></router-view>
    </keep-alive>
  </div>
</template>

<script>
import { handleRouter } from "./router/index";
export default {
  name: "app",
  created() {
    if (document.getElementById("Loading")) {
      // 将加载动画移除
      document.getElementById("Loading").remove();
    }
  },
  mounted() {
    let env = process.env.NODE_ENV;
    if (env == "development") {
      this.$store.commit("setbaseurl", "http://127.0.0.1:5000/");
    } else {
      this.$store.commit("setbaseurl", "http://139.155.253.86:5000/");
    }

    // 实现动态路由的添加
    handleRouter(JSON.parse(sessionStorage.getItem("routerlist")) || []);
  },
};
</script>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  min-width: 100vw;
}
body {
  max-width: 100vw;
  overflow: hidden;
  overflow-y: auto;
}
ul {
  list-style: none;
}
#app {
  min-width: 100vw;
}
.login-wrap .form{
  background: none !important;
}
.el-input{
  background: none !important;
}

.el-input__inner{
background: none !important;
}
.input-label{
  color: #fff !important;
}

$Color: #00a1d6;

.nav_title {
  height: 60px;
  line-height: 60px;
  color: #444;
  text-align: center;
  margin-bottom: 20px;
}

.el-cascader-menu {
  height: 200px !important;
}
</style>
